<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>SFX commands: Setup</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title">SFX commands: Setup<hr></P>


<P><B><I>Setup=[&lt;mode&gt;]&lt;program&gt;</I></B></P>

<P>SFX will try to execute <I>&lt;program&gt;</I> after successful
extraction. The folder containing extracted files is set as the current
before executing <I>&lt;program&gt;</I>. If a program name contains
spaces, it must be enclosed in quotes.</P>

<p>Program name can be preceded with optional <i>&lt;mode&gt;</i> string
enclosed in &lt; and &gt; brackets. Mode string can include <b>Max</b>,
<b>Min</b> and <b>Hide</b> commands allowing to start the setup program
with maximized, minimized or hidden window.</p>

<h1>Examples</h1>

<ol type="1">
  <li>
    <p>Start setup.exe using the default window visibility and size:</p>

    <p class="sample">Setup=setup.exe</p>
  </li>
  <li>
    <p>Start setup.exe and hide its window:</p>

    <P class="sample">Setup=&lt;hide&gt;setup.exe</P>
  </li>
</ol>



<h1><B>Notes</B></h1>

<ol type="1">
  <li>If application specified in <i>Setup</i> command does not have
    any parameters, you can use -sp&lt;par&gt;
    <a href="HELPGUISFXCmd.htm">SFX command line switch</a> to pass
    optional parameters to this application.</li>
  <li>SFX module sets <i>sfxname</i>, <i>sfxcmd</i> and <i>sfxpar</i>
    environment variables before running the setup program. <i>sfxname</i>
    variable contains a name of SFX archive. <i>sfxcmd</i> variable contains
    the complete command line received by SFX module. First parameter of
    this command line is SFX module name. <i>sfxpar</i> contains command
    line parameters only, without SFX module name. Setup program can read
    these variables if it needs such information. Also you can specify
    an expanded %variable% as a parameter, like "Setup=setup.exe %sfxpar%".</li>
  <li>SFX module displays "Extract" button instead of "Install"
    if no <i>Setup</i> or <i>Presetup</i> commands are present
    in the archive comment. If you prefer "Install" button, but do not need
    to execute any setup programs, you can add <i>Setup=&lt;&gt;</i>
    command. Or if you configure SFX archive through 
    <A HREF="HELPSFXOptGeneral.htm">SFX options</A> GUI dialog, just specify
    <i>&lt;&gt;</i> as setup program name. SFX module does not attempt
    to run a program with such name, but changes the button text.</li>
</ol>
</BODY>
</HTML>
